<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('修改饰品名称')"/>
    <th:block th:include="include :: datetimepicker-css"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-name-edit" th:object="${csOrnamentName}">
        <input name="id" th:field="*{id}" type="hidden">
        <div class="col-xs-12">
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">名称：</label>
                <div class="col-sm-8">
                    <input name="name" th:field="*{name}" class="form-control" type="text" required>
                </div>
            </div>
        </div>
        <!--            <div class="col-xs-12">-->
        <!--                <div class="form-group">-->
        <!--                    <label class="col-sm-3 control-label">market_hash_name：</label>-->
        <!--                    <div class="col-sm-8">-->
        <!--                        <input name="marketHashName" th:field="*{marketHashName}" class="form-control" type="text">-->
        <!--                    </div>-->
        <!--                </div>-->
        <!--            </div>-->
        <!--            <div class="col-xs-12">-->
        <!--                <div class="form-group">-->
        <!--                    <label class="col-sm-3 control-label">cs_qaq_id：</label>-->
        <!--                    <div class="col-sm-8">-->
        <!--                        <input name="csQaqId" th:field="*{csQaqId}" class="form-control" type="text">-->
        <!--                    </div>-->
        <!--                </div>-->
        <!--            </div>-->
        <!--            <div class="col-xs-12">-->
        <!--                <div class="form-group">-->
        <!--                    <label class="col-sm-3 control-label">yyyp_item_id：</label>-->
        <!--                    <div class="col-sm-8">-->
        <!--                        <input name="yyypItemId" th:field="*{yyypItemId}" class="form-control" type="text">-->
        <!--                    </div>-->
        <!--                </div>-->
        <!--            </div>-->
        <!--            <div class="col-xs-12">-->
        <!--                <div class="form-group">-->
        <!--                    <label class="col-sm-3 control-label">buff_item_id：</label>-->
        <!--                    <div class="col-sm-8">-->
        <!--                        <input name="buffItemId" th:field="*{buffItemId}" class="form-control" type="text">-->
        <!--                    </div>-->
        <!--                </div>-->
        <!--            </div>-->
        <!--            <div class="col-xs-12">-->
        <!--                <div class="form-group">-->
        <!--                    <label class="col-sm-3 control-label">c5_item_id：</label>-->
        <!--                    <div class="col-sm-8">-->
        <!--                        <input name="c5ItemId" th:field="*{c5ItemId}" class="form-control" type="text">-->
        <!--                    </div>-->
        <!--                </div>-->
        <!--            </div>
        -->
        <div class="col-xs-12">
            <div class="form-group">
                <label class="col-sm-3 control-label">状态：</label>
                <div class="col-sm-8">
                    <input name="status" id="status" th:field="*{status}" class="form-control" type="text">
                </div>
            </div>
        </div>
        <div class="col-xs-12">
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">创建时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="createDate" th:value="${#dates.format(csOrnamentName.createDate, 'yyyy-MM-dd')}"
                               class="form-control" placeholder="yyyy-MM-dd" type="text" required>
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-xs-12">
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">更新时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="updateDate" th:value="${#dates.format(csOrnamentName.updateDate, 'yyyy-MM-dd')}"
                               class="form-control" placeholder="yyyy-MM-dd" type="text" required>
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer"/>
<th:block th:include="include :: datetimepicker-js"/>
<script th:inline="javascript">
    var prefix = ctx + "system/name";
    $("#form-name-edit").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/edit", $('#form-name-edit').serialize());
        }
    }

    $("input[name='createDate']").datetimepicker({
        format: "yyyy-mm-dd HH:mm:ss",
        minView: 0,
        autoclose: true
    });

    $("input[name='updateDate']").datetimepicker({
        format: "yyyy-mm-dd HH:mm:ss",
        minView: 0,
        autoclose: true
    });
</script>
</body>
</html>